package com.augurit.gzcgwsp.jzfqwczz.common.service;

import java.util.Date;
import java.util.List;

import com.augurit.common.base.service.ICrudService;
import com.augurit.gzcgwsp.jzfqwczz.common.entity.YwYnBusinfoHfqk;
import com.augurit.gzcgwsp.jzfqwczz.common.web.form.YwYnBusinfoHfqkForm;

public interface IYwYnBusinfoHfqkService extends ICrudService<YwYnBusinfoHfqkForm, Long> {

	public void update(YwYnBusinfoHfqkForm form);
	public List<YwYnBusinfoHfqkForm> search(YwYnBusinfoHfqkForm form);
	/**
	 * 保存
	 * @param form
	 * @param flag 表示哪个环节
	 */
	public void save(YwYnBusinfoHfqkForm form, String flag);
	/**
	 * 获取核发情况
	 * @param id
	 * @param sts
	 * @return
	 */
	public YwYnBusinfoHfqkForm getEntity(Long id, String sts);
	/**
	 * 根据车辆id获取核发情况的数据
	 * @param id
	 * @param curYear
	 * @return
	 */
	public List<YwYnBusinfoHfqkForm> getHfqkByBusId(Long id, String curYear);
	/**
	 * 全部核发
	 * @param ids 车辆id
	 * @param flag 环节标识
	 * @param curUser 当前用户名称
	 */
	public void saveAllHfqk(String ids, String flag,String curUser,String startdate,String endDate,String checkDate);
	/**
	 * 获取处置证的有效日期
	 * @param busId
	 * @return
	 */
	public Date getCzzDate(String busId);
	
	/**
	 * 获取最近的核发情况
	 * @param id
	 * @return
	 */
	public YwYnBusinfoHfqk getNewHfqkByBusId(Long id);
	/**
	 * 更新实体
	 * @param hfqk
	 */
	public void updateEntity(YwYnBusinfoHfqk hfqk);

}
